/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kz.epam.homedevices.communication;

import kz.epam.homedevices.ElectricalDevice;

/**
 *
 * @author Knoppix
 */
public class CommunicationDevice extends ElectricalDevice {

    private String number;
    private CommunicationType type;

    public CommunicationDevice() {
    }

    public CommunicationDevice(CommunicationType type, String maker, Double cardinality, boolean powerOn, String number) {
        super(maker, cardinality, powerOn);
        this.number = number;
        this.type = type;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public CommunicationType getType() {
        return type;
    }

    public void setType(CommunicationType type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "\n" + this.type.toString() + " {"
                + super.toString()
                + ", Number: " + this.number + "}";
    }
}
